Skip to content

[PB-5357]: fix/update usage using the socket event#1830

Merged
xabg2 merged 13 commits intomasterfrom
fix/usage-delay
Feb 10, 2026
Merged

[PB-5357]: fix/update usage using the socket event#1830
xabg2 merged 13 commits intomasterfrom
fix/usage-delay

Conversation

@xabg2
Copy link
Contributor

@xabg2 xabg2 commented Jan 27, 2026

Description

The user’s storage limit is now updated whenever an event is received from the backend.

When a user purchases a plan, the backend sends a socket event called PLAN_UPDATED containing the new storage (in bytes). This value is now used to update the user’s storage limit directly, without requiring an additional fetch to retrieve the updated limit.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Additional Notes

@xabg2 xabg2 self-assigned this Jan 27, 2026
@xabg2 xabg2 requested a review from CandelR as a code owner January 27, 2026 10:41
@xabg2 xabg2 added the bug Something isn't working label Jan 27, 2026
@xabg2 xabg2 requested a review from larryrider as a code owner January 27, 2026 10:41
@xabg2 xabg2 added the enhancement New feature or request label Jan 27, 2026
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 27, 2026

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 65b72d6
Status: ✅  Deploy successful!
Preview URL: https://a809995f.drive-web.pages.dev
Branch Preview URL: https://fix-usage-delay.drive-web.pages.dev

View logs

@xabg2 xabg2 requested a review from CandelR January 27, 2026 13:24
}

interface FileCreatedEvent extends BaseEventData {
event: 'FILE_CREATED';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use the SOCKET_EVENTS constants? :)

@xabg2 xabg2 requested a review from CandelR January 29, 2026 13:49
@sonarqubecloud
Copy link

@xabg2 xabg2 merged commit c24462c into master Feb 10, 2026
9 of 10 checks passed
@xabg2 xabg2 deleted the fix/usage-delay branch February 10, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants